var ParseDns = require('./parseDns.js'),
    MainIndex = require('./mainIndex.js');

exports.router = router;

function router(res, req, pathname) {
  switch (pathname) {
    case '/parse':
      ParseDns.parseDns(req, res);
      break;
    default:
      MainIndex.goIndex(res, req);
  }
}
